package cn.kgc.Thread.work.work06;

public class OddThread extends Thread {

    public OddThread(String name){
      super(name);
    }
    public void run(){
        for (int i = 1; i <100 ; i++) {
            if (i%2!=0){
                System.out.println(this.getName()+"--奇数为："+i);
            }
        }
    }
}
